import org.junit.jupiter.api.Test;
import org.lsy.DemoApplication;
import org.lsy.model.Order;
import org.lsy.repository.OrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.UUID;

/**
 * @author SHIYUAN
 * @version 1.0
 */
@SpringBootTest(classes = DemoApplication.class)
public class DemoTestApplication {

    @Autowired
    private OrderRepository orderRepository;

    @Test
    public void test() {
        orderRepository.save(new Order(UUID.randomUUID().toString(), 0));
    }
}
